

import com.dg.Generator;
import com.dg.annotation.DBTable;
import com.dg.annotation.DBTableAttribute;
import com.dg.annotation.GenerateIBatisMapper;
import com.dg.annotation.GenerateIBatisMapperJUnitTest;
import com.dg.annotation.GenerateIBatisMapperXML;
import com.dg.annotation.GeneratePojoModel;
import com.dg.annotation.GenerateSQLScriptFile;
import com.dg.annotation.TestValue;

@DBTable(tableName="TComune")
@GenerateSQLScriptFile(outputFilename="CreaComune")
@GeneratePojoModel(outputFilename="Comune",outputClassName="Comune")
@GenerateIBatisMapper(outputFilename="ComuneMapper",outputClassName="ComuneMapper")
@GenerateIBatisMapperXML(outputFilename="ComuneMapper")
@GenerateIBatisMapperJUnitTest(outputFilename="ComuneMapperTest",outputClassName="ComuneMapperTest")
public class ComuneGenerator extends Generator {

	@DBTableAttribute(name="IdComune",sqlType="int",nullable=false,isUniquePrimaryKey=true,isIdentity=true)
    @TestValue(value="99999999l")
	Long idComune;

	@DBTableAttribute(name="Nome",sqlType="NVarchar(50)",nullable=false)
    @TestValue(value="NomeComune")
	String nome;

    @DBTableAttribute(name="IdProvincia",sqlType="int",nullable=false)
    @TestValue(value="1l")
    Long idProvincia;

    @DBTableAttribute(name="Cap",sqlType="NVarchar(5)",nullable=true)
    @TestValue(value="00100")
    String cap;
}
